package User;

import Interface.*;

import java.util.Scanner;

/**
 * @Author YuanYuan
 * @Date 2022/5/18
 * @Time 10:53
 */
public class NormalUser extends User{
    public NormalUser(String name) {
        super(name);
        this.iNterfaces = new INterface[]{
                new ExitBook(),
                new BorrowBook(),
                new ReturnBook(),
                new FindBook(),
                new SeeBook()
        };
    }
    @Override
    public int menu() {
        System.out.println("亲爱的会员:"+getName()+" 欢迎进入图书管理系统!");
        System.out.println("1.借阅图书");
        System.out.println("2.归还图书");
        System.out.println("3.查找图书");
        System.out.println("4.显示图书");
        System.out.println("0.退出");
        System.out.print("请输入进行的操作:->");
        Scanner scanner = new Scanner(System.in);
        int score = scanner.nextInt();
        return score;
    }
}
